import mongoose from "../mongo.js"
let data=new Date()
const reminders = new mongoose.Schema({
    status: {
        type: Boolean,
        default:false
    },
    type: String,
    content: String,
    date: {
        type: Date,
        default:data=data
    },
    isread:{
        type: Boolean,
        default:false
    },
})
export const Remindersmodel = mongoose.model('reminders', reminders, 'reminders')

const dep = new mongoose.Schema({
    dname:String
})

export const depmodel = mongoose.model('dep', dep,'dep')

const staff = new mongoose.Schema({
    img:String,
    name: String,
    did: {
        type: mongoose.Types.ObjectId,
        ref:'dep'
    },
    job: String,
    tel: String,
    phone: String,
    emil: String,
    sort: Number,
    status: {
        type: Boolean,
        default:false
    },
    sd:Boolean
})
export const staffmode=mongoose.model('staff',staff,'staff')
